#!/bin/bash

# Performance test for HBase column family block size
# @author dino.keco
# @email dino.keco@gmail.com
# @date 2012.06.12

block_sizes=( 4096 8192 16384 32768 65536 131072 262144 524288 1048576 2097152 4194304 )
cf_number=1
qf_number=100
table_name=bs_table
num_of_mappers=2
records_per_mapper=1

for block_size in "${block_sizes[@]}"
do
hadoop jar hbase-showcase-1.0.jar ba.keco.hbase.blocksize.MapReduceTest -Dhbase.showcase.cf.number=${cf_number} -Dhbase.showcase.qf.number=${qf_number} -Dhbase.showcase.table.name=${table_name} -Dhbase.showcase.input.records=${records_per_mapper} -Dhbase.showcase.mappers=${num_of_mappers} -Dhbase.showcase.block.size=${block_size} 
done
